//
//  VRDefine.h
//  MyDemos
//
//  Created by Veer on 16/8/9.
//  Copyright © 2016年 veer. All rights reserved.
//

#ifndef VRDefine_h
#define VRDefine_h



// 自动以全局宏
//
/**
 *  保存位置信息的key，保存为字典类型
 locDcit:{
	locality : 杭州市,
	administrativeArea : 浙江省,
	latitude : 30.26724521944026,
	longitude : 120.1020869588854,
	areacode : 330100
 }
 */
#define YAYILocationKey @"locationKey"



#ifdef DEBUG

#define Environment 0

#elif ADHOC

#define Environment 1

#else

#define Environment 2

#endif


// 自定义Log
#ifdef DEBUG
#define VRLog(...) NSLog(__VA_ARGS__)
#else
#define VRLog(...)
#endif

#define Screen_width [UIScreen mainScreen].bounds.size.width
#define Screen_height [UIScreen mainScreen].bounds.size.height
#define VRScreenScale (SCREEN_width / 375.0)
#define VRFontWithScale(font) ((font)*(1 + VRScreenScale)*0.5)

/** 系统版本号 */
#define SystemVersion [[[UIDevice currentDevice] systemVersion] floatValue]

// rgb颜色
#define VRColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]
#define VRColorAlpha(r, g, b, a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)/1.0]



#define kDefaultMargin  8

#define kAppStoreVersion 0

#define kDefaultSubGroupIcon        [UIImage imageWithColor:kOrangeColor size:CGSizeMake(32, 32)]


#define kAppLargeTextFont       [UIFont systemFontOfSize:16]
#define kAppMiddleTextFont      [UIFont systemFontOfSize:14]
#define kAppSmallTextFont       [UIFont systemFontOfSize:12]

#define kDefaultSilentUntil     100

#define kSaftyWordsCode 80001


#pragma mark - api
/**
 {
 "status": "0",
 "msg": "ok",
 "result": [
 {
 "caipiaoid": "1",
 "name": "福利彩票",
 "parentid": "0"
 },
 {
 "caipiaoid": "2",
 "name": "体育彩票",
 "parentid": "0"
 },
 */
#define URL_CaiPiaoClass @"http://api.jisuapi.com/caipiao/class"    // 获取彩票类别

/**
 * <#comment#>
 * @param
    caipiaoid:彩票ID
    issueno:期号 不选默认是当前期
 * @return
 */
#define URL_CaiPiaoQuery @"http://api.jisuapi.com/caipiao/query"    // 彩票开奖

/**
 * <#comment#>
 * @param
    caipiaoid:彩票ID
    issueno:期号 不选默认是当前期
    num:获取数量 最大20 默认10
    start:起始位置 默认0
 * @return
 */
#define URL_CaiPiaoHistory @"http://api.jisuapi.com/caipiao/history"    // 历史开奖信息




#endif /* VRDefine_h */
